Skip to content

fix proverbs state #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2025
Merged

fix proverbs state #4

merged 1 commit into from
Aug 15, 2025

Conversation

lawwu
Copy link
Contributor

@lawwu lawwu commented Aug 6, 2025

When sending a chat that updates the proverbs state, there is an error in the frontend:

 Error: Failed to execute action addProverb: TypeError: state.proverbs is not iterable
      at createConsoleError (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:882:71)
      at handleConsoleError (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:1058:54)
      at console.error (http://localhost:3000/_next/static/chunks/c412d_next_dist_client_b5ec818c._.js:1223:57)
      at useChat.useAsyncCallback[runChatCompletion].executeActionFromMessage
  (http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:3115:61)
      at http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:3452:13
      at Generator.throw (<anonymous>)
      at rejected (http://localhost:3000/_next/static/chunks/b0ba2_%40copilotkit_react-core_dist_a0202b27._.js:106:37)

This fixes the issue.

@tylerslaton
Copy link
Contributor

Thanks @lawwu!

@lawwu
Copy link
Contributor Author

lawwu commented Aug 15, 2025

@tylerslaton good to merge?

@tylerslaton tylerslaton merged commit 3b04565 into CopilotKit:main Aug 15, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants